<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo isset($headTitle) && $headTitle != '' ? $headTitle : 'AdMicro Site'; ?></title>
	<meta name="title" content="AdMicro Site - Local Website<?php echo isset($metaTitle) && $metaTitle != ''? ' - ' . $metaTitle : ''; ?>" />
	<meta name="keywords" content="AdMicro Site - Local Website<?php echo isset($metaKeyword) && $metaKeyword != ''? ' - ' . $metaKeyword : ''; ?>" />
	<meta name="description" content="AdMicro Site - Local Website<?php echo isset($metaDesc) && $metaDesc != '' ? ' - ' . $metaDesc : ''; ?>" />
    <?php echo $combinedCss; ?>    
	<!--[if IE 7]><link rel="stylesheet" href="<?php echo STATIC_DOMAIN ?>skins/admin/ie.css" type="text/css" media="screen, projection" /><![endif]-->
	<!--[if IE 6]><link rel="stylesheet" href="<?php echo STATIC_DOMAIN ?>skins/admin/ie6.css" type="text/css" media="screen, projection" /><![endif]-->
	<!--[if IE]>
		<style type="text/css">
		  .clearfix {
		    zoom: 1;     /* triggers hasLayout */
		    display: block;     /* resets display for IE/Win */
		    }  /* Only IE can see inside the conditional comment
		    and read this CSS rule. Don't ever use a normal HTML
		    comment inside the CC or it will close prematurely. */
		</style>
	<![endif]-->
    <?php echo $combinedJs; ?>    
	<!-- JavaScript -->
    <script type="text/javascript">
		// initialise plugins
        var base_url = '<?php echo STATIC_DOMAIN ?>';
		jQuery(function(){
			jQuery('ul.sf-menu').superfish();
		});
    </script>

	 <!--[if IE]><script language="javascript" type="text/javascript" src="<?php echo STATIC_DOMAIN ?>js/admin/excanvas.pack.js"></script><![endif]-->
</head>
<body>
<div class="shadow"></div><!-- .shadow -->
<div class="container" id="container">    	
	<!-- BEGIN HEADER -->
	<div id="header">
		<p class="logo"><a href="<?php echo STATIC_DOMAIN.'admin/landing'?>" title="Administrator">Adwords admin</a></p>
		<p class="user">
			<span>Xin chào, <?php echo $this->session->userdata('username')?></span>
			<?php $permission = $this->session->userdata('permission')?>
			<a href="<?php echo STATIC_DOMAIN?>" title="settings">View the website</a> - <a href="<?php echo $permission == 1 ? STATIC_DOMAIN.'admin/user': STATIC_DOMAIN.'admin/user/changepassword'?>" title="settings">Settings</a> - <a href="<?php echo site_url('admin/login/logout'); ?>" title="settings">Logout</a>
		</p>		
	</div><!-- end div #header -->
	<!-- END HEADER -->	 
        
   